package copy;

public class DeepStudent implements Cloneable {

    private Integer id;

    private String name;

    private DeepSchool deepSchool;

    public DeepStudent(Integer id, String name, DeepSchool deepSchool) {
        this.id = id;
        this.name = name;
        this.deepSchool = deepSchool;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public DeepSchool getDeepSchool() {
        return deepSchool;
    }

    public void setDeepSchool(DeepSchool deepSchool) {
        this.deepSchool = deepSchool;
    }

    @Override
    protected DeepStudent clone() throws CloneNotSupportedException {
        DeepStudent deepStudent = (DeepStudent) super.clone();
        deepStudent.deepSchool = deepSchool.clone();
        return deepStudent;
    }

}
